package com.ailot.cloud.base.security.feign;

import feign.Feign;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * feign 配置增强
 */
@Configuration
@ConditionalOnClass(Feign.class)
public class BaseFeignConfiguration {

    @Bean
    public BaseFeignClientInterceptor baseFeignClientInterceptor() {
        return new BaseFeignClientInterceptor();
    }

}
